package com.sxfq.loansupermarket.backsystem.core.util;

/**
 * 传入参数改为简化显示,超过百万显示百万等
 * 如:3000000显示3百万,550000显示55万,9999显示9千
 */
public class AmountUtils {
    public static String trans(int count){

        if(count/1000000!=0){
            return count/1000000+"百万";
        }
        if(count/10000!=0){
            return count/10000+"万";
        }
        if(count/1000!=0){
            return count/1000+"千";
        }
        return count+"";
    }
}
